
#ifndef UTIL_H__
#define UTIL_H__

#include <stdio.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

unsigned short hj212_crc16(char *data, unsigned int length);
char* local_t_h212t(const char* t);
void get_local_time(time_t time, char* str);
void get_local_ago_time(time_t time, char* str);


#ifdef __cplusplus
}
#endif


#endif
